//
//  sixth.m
//  Day8homework
//
//  Created by dllo on 16/5/13.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "sixth.h"

void sixth(struct Student a){
    //    int max = a.Chinese.score > a.English.score ? a.Chinese.score : a.English.score;
    //    max = max > a.Math.score ? max : a.Math.score;
    
    if (a.Chinese.score < 60 && a.English.score < 60) {
        printf("姓名:%s\n", a.name);
    } else if (a.Chinese.score < 60 && a.Math.score < 60) {
        printf("姓名:%s\n", a.name);
    } else if (a.English.score < 60 && a.Math.score < 60) {
        printf("姓名:%s\n", a.name);
    } else {
        printf("请再接再厉\n");
    }
    
}